import math

import 二分法 as binMethod




def xyByTime(t):
    a = 0.55 / 2
    jiao = binMethod.method(t)
    resJiao = jiao
    jiao = float(format(jiao / math.pi, '.6f'))
    jiaocos = jiao
    while jiaocos > 0:
        jiaocos -= 2
    x0 = a * jiao * math.cos(jiaocos * math.pi)
    y0 = a * jiao * math.sin(jiaocos * math.pi)
    return x0, y0, resJiao


def jiaoByLen(Len):
    jiao = binMethod.method(Len)
    return jiao


